why is trial and error important